<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="perm" uri="/WEB-INF/tld/perm.tld"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script>var ctx="${ctx}";</script>
<div class="form-horizontal" role="form" >
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">询盘结束时间:</label>
        <div class="col-md-9">
        	 <input id="deadline" value="<fmt:formatDate value='${pallet.deadline}' pattern='yyyy-MM-dd'/>"  type="text" placeholder="询盘结束时间" class="form-control" name="deadline"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">货盘用户信息:</label>
        <div class="col-md-9">
        	 <input id="memberId" value="${pallet.memberId}"  type="text" placeholder="货盘用户信息" class="form-control" name="memberId"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">货物属性:</label>
        <div class="col-md-9">
        	 <input id="goodsAttr" value="${pallet.goodsAttr}"  type="text" placeholder="货物属性" class="form-control" name="goodsAttr"/>
        </div>
    </div>
<!-- 	<div class="form-group"> -->
<!--  	    <label class="col-md-3 col-sm-3 control-label">重泡性质:</label> -->
<!--         <div class="col-md-9"> -->
<%--         	 <input id="heavyBulky" value="${pallet.heavyBulky}"  type="text" placeholder="重泡性质" class="form-control" name="heavyBulky"/> --%>
<!--         </div> -->
<!--     </div> -->
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">始发港:</label>
        <div class="col-md-9">
        	 <input id="shipPort" value="${pallet.shipPort}"  type="text" placeholder="始发港" class="form-control" name="shipPort"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">目的港:</label>
        <div class="col-md-9">
        	 <input id="destinationPort" value="${pallet.destinationPort}"  type="text" placeholder="目的港" class="form-control" name="destinationPort"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">航班时间:</label>
        <div class="col-md-9">
        	 <input id="flightTime" value="<fmt:formatDate value='${pallet.flightTime}' pattern='yyyy-MM-dd'/>"  type="text" placeholder="航班时间" class="form-control" name="flightTime"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">指定航空公司:</label>
        <div class="col-md-9">
<%--         	 <input id="assignPort" value="${pallet.assignPort}"  type="text" placeholder="是否指定航空公司:0:否;1-是" class="form-control" name="assignPort"/> --%>
	                 <label style="margin-top: 5px;"><input type="radio"  name="assignPort" id="assignPort_yes" value="0" checked=""> <i></i>否</label>
	                 <label><input type="radio"  name="assignPort" id="assignPort_no" value="1" > <i></i>是</label>
        </div>
    </div>
	<div class="form-group" style="display: none;">
 	    <label class="col-md-3 col-sm-3 control-label">航空公司代码:</label>
        <div class="col-md-9">
        	 <input id="airlineCode" value="${pallet.airlineCode}"  type="text" placeholder="航空公司代码" class="form-control" name="airlineCode"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">班次类型:</label>
        <div class="col-md-9">
<%--         	 <input id="flightType" value="${pallet.flightType}"  type="text" placeholder="班次类型" class="form-control" name="flightType"/> --%>
	                 <label style="margin-top: 5px;"><input type="radio"  name="flightType" id="flightType_yes" value="0" checked=""> <i></i>直飞</label>
	                 <label><input type="radio"  name="flightType" id="flightType_no" value="1" > <i></i>中转</label>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">航程时间要求:</label>
        <div class="col-md-9">
<%--         	 <input id="voyageTime" value="${pallet.voyageTime}"  type="text" placeholder="航程时间要求" class="form-control" name="voyageTime"/> --%>
        	 <select class="form-control" name="voyageTime" id="voyageTime">
        	 	<c:forEach items="${limitList}" var="vo">
					<option value="${vo.code }" <c:if test="${vo.code == pallet.voyageTime}">selected="selected"</c:if>>${vo.name }</option>
				</c:forEach>
            </select>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">货品名称:</label>
        <div class="col-md-9">
        	 <input id="goodsName" value="${pallet.goodsName }"  type="text" placeholder="货品名称" class="form-control" name="goodsName"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">包装方式:</label>
        <div class="col-md-9">
<%--         	 <input id="packManner" value="${pallet.packManner}"  type="text" placeholder="包装方式" class="form-control" name="packManner"/> --%>
			<select class="form-control" name="packManner" id="packManner">
        	 	<c:forEach items="${packList}" var="vo">
					<option value="${vo.code }" <c:if test="${vo.code == pallet.packManner}">selected="selected"</c:if>>${vo.name }</option>
				</c:forEach>
            </select>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">件数(PCS):</label>
        <div class="col-md-9">
        	 <input id="packagesNum" value="${pallet.packagesNum}"  type="text" placeholder="件数(PCS)" class="form-control" name="packagesNum"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">毛重(KG):</label>
        <div class="col-md-9">
        	 <input id="roughWeight" value="${pallet.roughWeight}"  type="text" placeholder="毛重(KG)" class="form-control" name="roughWeight"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">体积(m³):</label>
        <div class="col-md-9">
        	 <input id="volume" value="${pallet.volume}"  type="text" placeholder="体积(m³)" class="form-control" name="volume"/>
        </div>
    </div>
<!-- 	<div class="form-group"> -->
<!--  	    <label class="col-md-3 col-sm-3 control-label">体积重:</label> -->
<!--         <div class="col-md-9"> -->
<%--         	 <input id="volumeWeight" value="${pallet.volumeWeight}"  type="text" placeholder="体积重" class="form-control" name="volumeWeight"/> --%>
<!--         </div> -->
<!--     </div> -->
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">长度(CM):</label>
        <div class="col-md-9">
        	 <input id="length" value="${pallet.length}"  type="text" placeholder="长度(CM)" class="form-control" name="length"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">宽度(CM):</label>
        <div class="col-md-9">
        	 <input id="width" value="${pallet.width}"  type="text" placeholder="宽度(CM)" class="form-control" name="width"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">高度(CM):</label>
        <div class="col-md-9">
        	 <input id="height" value="${pallet.height}"  type="text" placeholder="高度(CM)" class="form-control" name="height"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">自报关：</label>
        <div class="col-md-9">
<%--         	 <input id="self" value="${pallet.self}"  type="text" placeholder="自报关：0-否；1-是" class="form-control" name="self"/> --%>
	                 <label style="margin-top: 5px;"><input type="radio"  name="self" id="self_yes" value="0" checked=""> <i></i>否</label>
	                 <label><input type="radio"  name="self" id="self_no" value="1" > <i></i>是</label>
        </div>
    </div>
    
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">提货需求:</label>
        <div class="col-md-9">
<%--         	 <input id="needDelivery" value="${pallet.needDelivery}"  type="text" placeholder="提货需求:0-否；1-是；" class="form-control" name="needDelivery"/> --%>
	                 <label style="margin-top: 5px;"><input type="radio"  name="needDelivery" id="needDelivery_yes" value="0" checked=""> <i></i>否</label>
	                 <label><input type="radio"  name="needDelivery" id="needDelivery_no" value="1" > <i></i>是</label>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">提货联系人:</label>
        <div class="col-md-9">
        	 <input id="contractName" value="${pallet.contractName}"  type="text" placeholder="提货联系人" class="form-control" name="contractName"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">提货联系人电话:</label>
        <div class="col-md-9">
        	 <input id="contractMobile" value="${pallet.contractMobile}"  type="text" placeholder="提货联系人电话" class="form-control" name="contractMobile"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">提货备注:</label>
        <div class="col-md-9">
        	 <textarea id="remark" type="text" placeholder="备注信息（提货时间等...）" class="form-control" name="textarea">${pallet.remark }</textarea>
        </div>
    </div>
    
    
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">改包装:</label>
        <div class="col-md-9">
<%--         	 <input id="packChange" value="${pallet.packChange}"  type="text" placeholder="可否改包装:0-否；1-是" class="form-control" name="packChange"/> --%>
	                 <label style="margin-top: 5px;"><input type="radio"  name="packChange" id="packChange_yes" value="0" checked=""> <i></i>否</label>
	                 <label><input type="radio"  name="packChange" id="packChange_no" value="1" > <i></i>是</label>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">其他服务需求:</label>
        <div class="col-md-9">
        	 <input id="anotherService" value="${pallet.anotherService}"  type="text" placeholder="其他服务需求" class="form-control" name="anotherService"/>
        </div>
    </div>
    
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">付款方式:</label>
        <div class="col-md-9">
<%--         	 <input id="payMethod" value="${pallet.payMethod}"  type="text" placeholder="付款方式:0-在线支付；1-企业月结" class="form-control" name="payMethod"/> --%>
			<select class="form-control" name="payMethod" id="payMethod">
        	 	<c:forEach items="${payList}" var="vo">
					<option value="${vo.code }" <c:if test="${vo.code == pallet.payMethod}">selected="selected"</c:if>>${vo.name }</option>
				</c:forEach>
            </select>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">付款周期:</label>
        <div class="col-md-9">
<%--         	 <input id="payPeriod" value="${pallet.payPeriod}"  type="text" placeholder="付款周期:0-立即支付；1-30天；2-60天" class="form-control" name="payPeriod"/> --%>
			<select class="form-control" name="payPeriod" id="payPeriod">
        	 	<c:forEach items="${periodList}" var="vo">
					<option value="${vo.code }" <c:if test="${vo.code == pallet.payPeriod}">selected="selected"</c:if>>${vo.name }</option>
				</c:forEach>
            </select>
        </div>
    </div>
    
    
    
    
    
    
    
    
    <!-- 
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">包装方式:</label>
        <div class="col-md-9">
        	 <input id="confirmPackManner" value="${pallet.confirmPackManner}"  type="text" placeholder="包装方式" class="form-control" name="confirmPackManner"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">件数(PCS):</label>
        <div class="col-md-9">
        	 <input id="confirmPackagesNum" value="${pallet.confirmPackagesNum}"  type="text" placeholder="件数(PCS)" class="form-control" name="confirmPackagesNum"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">长度(CM):</label>
        <div class="col-md-9">
        	 <input id="confirmLength" value="${pallet.confirmLength}"  type="text" placeholder="长度(CM)" class="form-control" name="confirmLength"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">体积重:</label>
        <div class="col-md-9">
        	 <input id="confirmVolumeWeight" value="${pallet.confirmVolumeWeight}"  type="text" placeholder="体积重" class="form-control" name="confirmVolumeWeight"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">货盘发布时间:</label>
        <div class="col-md-9">
        	 <input id="publishTime" value="${pallet.publishTime}"  type="text" placeholder="货盘发布时间" class="form-control" name="publishTime"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">体积(立方米):</label>
        <div class="col-md-9">
        	 <input id="confirmVolume" value="${pallet.confirmVolume}"  type="text" placeholder="体积(立方米)" class="form-control" name="confirmVolume"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">高度(CM):</label>
        <div class="col-md-9">
        	 <input id="confirmHeight" value="${pallet.confirmHeight}"  type="text" placeholder="高度(CM)" class="form-control" name="confirmHeight"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">宽度(CM):</label>
        <div class="col-md-9">
        	 <input id="confirmWidth" value="${pallet.confirmWidth}"  type="text" placeholder="宽度(CM)" class="form-control" name="confirmWidth"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">货盘编号:</label>
        <div class="col-md-9">
        	 <input id="serialNo" value="${pallet.serialNo}"  type="text" placeholder="货盘编号" class="form-control" name="serialNo"/>
        </div>
    </div>
	<div class="form-group">
 	    <label class="col-md-3 col-sm-3 control-label">货盘状态:</label>
        <div class="col-md-9">
        	 <input id="status" value="${pallet.status}"  type="text" placeholder="货盘状态" class="form-control" name="status"/>
        </div>
    </div>
     -->
</div>

<script>
	//航班时间
	var flightTime = {
	    elem: "#flightTime",
	    format: "YYYY-MM-DD",
	    min: "2001-06-16",
	    max: "2099-06-16",
	    istime: true,
	    istoday: false,
	    choose: function(datas) {
	    	endTime.min = datas;
	    	endTime.start = datas
	    }
	};
	laydate(flightTime);

	//竞价结束时间
	var deadline = {
        elem: "#deadline",
        format: "YYYY-MM-DD",
        min: "2001-06-16",
        max: "2099-06-16",
        istime: true,
        istoday: false,
        choose: function(datas) {
        	endTime.min = datas;
        	endTime.start = datas
        }
    };
    laydate(deadline);
    
</script>
